package main;

/**
 * Pair class for holding colliders.
 * @author Leo
 *
 */
public class Pair {
    /** First object. */
    private ICollider o1;
    /** Second object. */
    private ICollider o2;
    /**
     * Pair Constructor.
     * @param obj1 is the first collider object.
     * @param obj2 is the second collider object.
     */
    public Pair(final ICollider obj1, final ICollider obj2) {
        this.o1 = obj1;
        this.o2 = obj2;
    }
    /**
     * Get first object.
     * @return first object.
     */
    final ICollider getFirst() {
        return o1;
    }
    /**
     * Get last object.
     * @return last object
     */
    final ICollider getSecond() {
        return o2;
    }
    /**
     * Set first object.
     * @param o is the first obj
     */
    final void setFirst(final ICollider o) {
        o1 = o;
    }
    /**
     * Set second object.
     * @param o is the second obj
     */
    final void setSecond(final ICollider o) {
        o2 = o;
    }
}
